import React, { PropsWithChildren } from 'react';
import { connect } from 'react-redux';
import { Button } from 'antd';
import * as actions from '../../store/actions/login';


type HomeState = typeof actions;
type Props = PropsWithChildren<HomeState>;
const Home = (props: Props) => {
    return <div>
        home
        <Button onClick={props.logout}>退出登录</Button>
    </div>
}


export default connect(() => ({}), actions)(Home);